package com.day03;

public class Test {

    public void t2(Stu stu) {
        stu = new Stu();
        stu.name = "李四";
        System.out.println("t2 stu:" + stu.name);
    }

    public void t1(int i) {
        i >>= 2;
        System.out.println("i=" + i);
    }

    public static void main(String[] args) {
        Test md = new Test();
        int a = 100;
        md.t1(a);
        System.out.println("a=" + a);
        Stu stu = new Stu();
        stu.name = "张三";
        md.t2(stu);
        System.out.println("main stu:" + stu.name);
    }
}

class Stu {
    String name;
}
